﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CH.Easy.Log
{
    public enum LogType
    {
        Error = 0,
        Login = 1,
        Delete = 2,
        Insert = 3,
        Update = 4,
        Operate = 5,
    }


    public interface ILog
    {
        //判断
        bool LogIsNullOrEmpty(object obj);
        bool LogIsNullOrEmpty(object obj, string msg);

        bool LogIsEquals(object a, object b);
        bool LogIsEquals(object a, object b, string msg);

        //异常
        void Log(Exception e, params object[] param);
        void Log(Exception e, string uid, params object[] param);
        void Log(Exception e, string uid, string name, params object[] param);

        //操作
        void Log(string msg);
        void Log(string msg, LogType type, params object[] param);
        void Log(string msg, LogType type, string uid, params object[] param);
        void Log(string msg, LogType type, string uid, string name, params object[] param);
        void Log(string msg, int type, params object[] param);
        void Log(string msg, int type, string uid, params object[] param);
        void Log(string msg, int type, string uid, string name, params object[] param);
    }
}
